/*
 * 供应商下拉列表
 * 参数   交易码：trancode=Provider
 * 
 */

package org.ccams.tran;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import net.sf.json.JSONObject;

import org.ccams.domain.TProvider;
import org.ccams.util.ConvertUtil;

public class TranProvider extends AbstractJsonTran {

	@SuppressWarnings("unchecked")	
	public void buildJSONObject(Map model, JSONObject json,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		List<TProvider> list = getCcamsService().getTproviderDao().getAllTProvider();
		json.putAll(ConvertUtil.generate(list));
	}
}
